<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<script>
		function cal() {
		for(i=0;i<100;i++){
		for(j=0;j<100;j++){
		for(n=0;n<100;n++){
		if((i+j+n)==100 & (n*1/3+j*3+i*5)==100){
		console.log();	
		document.write("大公鸡:"+i+"老母鸡:"+j+"小鸡:"+n);
	    }
	    }
	    }
	    }
	  }
	</script>
	</head>
	<body>
		<button id="btn" onclick="cal()">算钱买鸡</button>
	</body>
</html>